<template>
  <div class="vuex">
    vuex:{{$store.state.count}}
    <button @click="increment">加法</button>
    <button @click="decrement">减法</button>
  </div>
</template>


<script>
import { mapActions } from 'vuex'
export default {
  methods: mapActions(['increment', 'decrement'])
}
</script>


<style>
</style>

